<script setup>
import { useRouter } from "vue-router"

const router = useRouter()
// 跳转页面
const jumpTo = (path) => {
    router.push({ path })
    changeShowType(false)
}
</script>

<template>
    
  <div class="footer">
    <div class="middle">
        <div class="item">
            <div class="logoBox">
                <img src="/img/whiteLogo2.png" alt="">
            </div>
            <div class="desc">{{ $t('footer.scanTheCode') }}</div>
            <div class="qrBox">
                <div class="erCode">
                    <img src="/img/qr1.jpg" alt="">
                </div>
                <div class="erCode">
                    <img src="/img/qr2.jpg" alt="">
                </div>
            </div>
            
        </div>

        <div class="item">
            <div class="title">{{ $t('footer.about') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.aboutUs') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.news') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.history') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.culture') }}</div>
        </div>

        <div class="item">
            <div class="title">{{ $t('footer.Relevant') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.privacy') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.user') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.question') }}</div>
            <div class="cItem" @click="jumpTo('/about')">{{ $t('footer.cookie') }}</div>
        </div>
        <div class="item">
            <div class="title">{{ $t('footer.other') }}</div>
            <div class="cItem" @click="jumpTo('/after')">{{ $t('footer.after') }}</div>
            <div class="cItem" @click="jumpTo('/inquiry')">{{ $t('footer.inquiry') }}</div>
            <div class="cItem" @click="jumpTo('/person')">{{ $t('footer.history') }}</div>
            <div class="cItem" @click="jumpTo('/person')">{{ $t('footer.accout') }}</div>
        </div>
        <div class="item">
            <div class="title">{{ $t('footer.concact') }}</div>
            <div class="cItem">{{ $t('footer.website') }}<span  @click="jumpTo('/after')">{{ $t('footer.enter') }}</span></div>
            <div class="cItem">{{ $t('footer.phone') }}</div>
            <div class="cItem">{{ $t('邮箱') }}：info@zehaotarpaulin.cn</div>
            <div class="cItem">{{ $t('footer.address') }}</div>
        </div>
    </div>

    <div class="middle copyRight">{{ $t('footer.copyRight') }}</div>
  </div>
</template>

<style scoped lang="scss">
.footer{
    background-color: #000;
    padding: 20px 0;
    color: #fff;
    font-size: 13px;

    .middle{
        display: flex;
        justify-content: space-between;
        .desc{
            font-size: 18px;
            font-weight: bold;
            margin: 20px ;
        }
        .item{
            .logoBox{
                width: 180px;
                margin-top: 10px;

                img{
                    width: 100%;
                }
            }

            .qrBox{
                display: flex;
            }

            .erCode{
                margin-left: 20px;
                width: 130px;
                height: 130px;

                img{
                    width: 100%;
                    height: 100%;
                }
            }

            .cItem{
                margin-bottom: 25px;
                font-size: 14px;
                cursor: pointer;
                max-width: 300px;
            }

            .title{
                margin-bottom: 30px;
                margin-top: 75px;
                color: rgba(255, 255, 255, 1);
                font-size: 16px;
                font-weight: 400;
                line-height: 23px;
            }
        }

        &.copyRight{
            display: block;
            text-align: center;
            color: #999;
            margin-top: 30px;
        }
    }

}
</style>
